<%--
  Created by IntelliJ IDEA.
  User: sengu
  Date: 2020/10/30
  Time: 19:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>登录界面</title>
    <script src="js/login.js"></script>
    <link rel="stylesheet" href="css/login.css" />
    <link rel="stylesheet" href="css/iconfont.css" />
</head>

<body>
<form name="login_form" action="login" method="post">
	<div id="bigBox">
		<h1>登录</h1>
		<div class="inputBox">
			<div class="inputText">
				<span class="iconfont icon-yonghu"></span>
				<input type="text" name="name" class="uname" placeholder="Username(6-16位)" />
				<span class='unameJudge'></span>
			</div>
			<div class="inputText">
				<span class="iconfont icon-yanjing"></span>
				<input type="password" name="password" class="pwd" placeholder="Password(6-16位)" />
				<span class='pwdJudge'></span>
			</div>
		</div>
		<input class="registerButton" type="button" value="注册" />
		<input class="loginButton" type="submit" value="登录" />
	</div>
	<script>
		var btn = document.querySelector('.registerButton');
		btn.addEventListener('click', function () {
			window.location.href = 'register.jsp';
		})
	</script>
</body>
</html>
